package org.jeecg.common.util;


/**
 * 两个元组
 * 实现泛型公共类 - 两个类型
 *
 * @param <A>
 * @param <B>
 * @author Yafei Song
 * @date 2022/09/26
 */
public class TwoTuple <A,B>{

    private final A a;
    private final B b;

    public TwoTuple(A a, B b) {
        this.a = a;
        this.b = b;
    }

    public A getA() {
        return a;
    }

    public B getB() {
        return b;
    }

    @Override
    public String toString() {
        return "TwoTuple{" +
                "a=" + a +
                ", b=" + b +
                '}';
    }
}
